import request from '@/utils/request'

// 查询领用单子列表
export function listHmzBorrowDetail(query) {
  return request({
    url: '/system/hmzBorrowDetail/list',
    method: 'get',
    params: query
  })
}

// 查询领用单子详细
export function getHmzBorrowDetail(id) {
  return request({
    url: '/system/hmzBorrowDetail/' + id,
    method: 'get'
  })
}

// 新增领用单子
export function addHmzBorrowDetail(data) {
  return request({
    url: '/system/hmzBorrowDetail',
    method: 'post',
    data: data
  })
}

// 修改领用单子
export function updateHmzBorrowDetail(data) {
  return request({
    url: '/system/hmzBorrowDetail',
    method: 'put',
    data: data
  })
}

// 删除领用单子
export function delHmzBorrowDetail(id) {
  return request({
    url: '/system/hmzBorrowDetail/' + id,
    method: 'delete'
  })
}
